home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / edit / mg2a_src.zip / SYS / VMS / MAKE.COM < prev    next >
Text File  |  1988-08-23  |  3KB  |  109 lines

  1. $    on error then goto trouble
  2. $    on severe_error then goto trouble
  3. $!
  4. $! Command procedure to build MG on VMS systems.  To use it, issue the
  5. $! command
  6. $!    @[SYS.VMS]MAKE
  7. $!
  8. $! while in the top-level MG directory.
  9. $!
  10. $!* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
  11. $!
  12. $! Define a search path for include files.
  13. $!
  14. $    define c$include [],[.sys.vms],[.sys.default]
  15. $!
  16. $! Define alias for the compilation command.  Use a command file that
  17. $! checks revision dates and only compiles when it has to.
  18. $!
  19. $    ccom := @[.sys.vms]ccom
  20. $!
  21. $! Select compilation options:
  22. $!
  23. $!    PREFIXREGION    -- use a silly hack that I (mpk) like
  24. $!    XKEYS        -- look for a terminal-specific startup file
  25. $!    NO_BACKUP    -- do not include code for making backup files
  26. $!    NO_DIRED    -- DIRED hasn't been implemented yet
  27. $!    REGEX        -- Include the regular expression code
  28. $!
  29. $!    See MGPROG.DOC in the main directory for more info.
  30. $!
  31. $    ccomflags =  "/DEFINE=(""PREFIXREGION"",""DO_METAKEY"",""XKEYS""" + -
  32.     ",""NO_BACKUP"",""NO_DIRED"",""REGEX"")"
  33. $!
  34. $! If REGEX is #defined, link in these two object modules.
  35. $!
  36. $    if f$locate("REGEX",ccomflags) .ne. f$length(ccomflags) then -
  37.         regexobj = "[]re_search.obj,[]regex.obj,"
  38. $!
  39. $! Compile the system-independent files
  40. $!
  41. $ ccom basic.c        'ccomflags
  42. $ ccom dir.c        'ccomflags
  43. $ ccom dired.c        'ccomflags
  44. $ ccom file.c        'ccomflags
  45. $ ccom line.c        'ccomflags
  46. $ ccom match.c        'ccomflags
  47. $ ccom paragraph.c    'ccomflags
  48. $ ccom random.c        'ccomflags
  49. $ ccom region.c        'ccomflags
  50. $ ccom search.c        'ccomflags
  51. $ ccom version.c    'ccomflags
  52. $ ccom window.c        'ccomflags
  53. $ ccom word.c        'ccomflags
  54. $ ccom buffer.c        'ccomflags
  55. $ ccom display.c    'ccomflags
  56. $ ccom echo.c        'ccomflags
  57. $ ccom extend.c        'ccomflags
  58. $ ccom help.c        'ccomflags
  59. $ ccom kbd.c        'ccomflags
  60. $ ccom keymap.c        'ccomflags
  61. $ ccom macro.c        'ccomflags
  62. $ ccom main.c        'ccomflags
  63. $ ccom modes.c        'ccomflags
  64. $ ccom regex.c        'ccomflags
  65. $ ccom re_search.c    'ccomflags
  66. $!
  67. $! Use the termcap terminal driver and default ASCII character set info
  68. $!
  69. $ ccom [.sys.default]cinfo.c        'ccomflags
  70. $ ccom [.sys.default]tty.c        'ccomflags
  71. $ ccom [.sys.default]ttykbd.c        'ccomflags
  72. $!
  73. $! Make the termcap library
  74. $!
  75. $ ccom [.termlib]fgetlr
  76. $ ccom [.termlib]tgetent
  77. $ ccom [.termlib]tgetflag
  78. $ ccom [.termlib]tgetnum
  79. $ ccom [.termlib]tgetstr
  80. $ ccom [.termlib]tgoto
  81. $ ccom [.termlib]tputs
  82. $!
  83. $ library/create/object termcap.olb fgetlr.obj,tgetent.obj,-
  84. tgetflag.obj,tgetnum.obj,tgetstr.obj,tgoto.obj,tputs.obj
  85. $ purge/keep=2 termcap.olb
  86. $!
  87. $! VMS-specific files
  88. $!
  89. $ ccom [.sys.vms]fileio.c        'ccomflags
  90. $ ccom [.sys.vms]spawn.c        'ccomflags
  91. $ ccom [.sys.vms]ttyio.c        'ccomflags
  92. $ ccom [.sys.vms]trnlnm.c        'ccomflags
  93. $ ccom [.sys.vms]fparse.c        'ccomflags
  94. $!
  95. $! VAX Macro sources
  96. $!
  97. $    macro [.sys.vms]unixfns.mar
  98. $!
  99. $! Link it all together
  100. $!
  101. $    link /exe=mg  [.sys.vms]mg.opt/opt, 'regexobj' []termcap.olb/lib
  102. $    exit
  103. $!
  104. $! Trouble!
  105. $!
  106. $trouble:
  107. $    write sys$output "%MAKEIT-F-TROUBLE, trouble building MG"
  108. $    exit
  109.